<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>后盾人</title>
  </head>
  <body></body>
  <script>
    //apply call bind
    // {name:'李四'}
    //{}  {}
    function User(name) {
      this.name = name;
      // return { a: "houdunren.com" };
    }
    let lisi = new User("李四");
    console.log(lisi);
    let hdcms = { url: "hdcms.com" };
    User.call(hdcms, "开源系统");
    console.log(hdcms);
  </script>
</html>
